package chp13;

public class Test6 {

    public static void main(String[] args) {
        //连接字符串
        String str1 = "你好:";
        String str2 = "小明";
        String str3 = str1 + str2;
        System.out.println(str3);
        String str4 = str1.concat(str2);
        System.out.println(str4);
    }
}
